package org.itcast.adi.planinfo.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public enum PlanStatus {

    ACTIVE(1,"active"),
    UNACTIVE(0,"unactive");
    @EnumValue
    @JsonValue
    private final int code;
    private final String value;
    PlanStatus(int code,String value) {
        this.code = code;
        this.value = value;
    }

}
